Optimal. Leaf size=170 \[ \frac {b c d^2 \sqrt {-1-c^2 x^2}}{\sqrt {-c^2 x^2}}+\frac {b e^2 x^2 \sqrt {-1-c^2 x^2}}{6 c \sqrt {-c^2 x^2}}-\frac {d^2 \left (a+b \text {csch}^{-1}(c x)\right )}{x}+2 d e x \left (a+b \text {csch}^{-1}(c x)\right )+\frac {1}{3} e^2 x^3 \left (a+b \text {csch}^{-1}(c x)\right )-\frac {b \left (12 c^2 d-e\right ) e x \text {ArcTan}\left (\frac {c x}{\sqrt {-1-c^2 x^2}}\right )}{6 c^2 \sqrt {-c^2 x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 170, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 7, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {276, 6437, 12,
1279, 396, 223, 209} \begin {gather*} -\frac {d^2 \left (a+b \text {csch}^{-1}(c x)\right )}{x}+2 d e x \left (a+b \text {csch}^{-1}(c x)\right )+\frac {1}{3} e^2 x^3 \left (a+b \text {csch}^{-1}(c x)\right )-\frac {b e x \text {ArcTan}\left (\frac {c x}{\sqrt {-c^2 x^2-1}}\right ) \left (12 c^2 d-e\right )}{6 c^2 \sqrt {-c^2 x^2}}+\frac {b c d^2 \sqrt {-c^2 x^2-1}}{\sqrt {-c^2 x^2}}+\frac {b e^2 x^2 \sqrt {-c^2 x^2-1}}{6 c \sqrt {-c^2 x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 209
Rule 223
Rule 276
Rule 396
Rule 1279
Rule 6437
Rubi steps
\begin {align*} \int \frac {\left (d+e x^2\right )^2 \left (a+b \text {csch}^{-1}(c x)\right )}{x^2} \, dx &=-\frac {d^2 \left (a+b \text {csch}^{-1}(c x)\right )}{x}+2 d e x \left (a+b \text {csch}^{-1}(c x)\right )+\frac {1}{3} e^2 x^3 \left (a+b \text {csch}^{-1}(c x)\right )-\frac {(b c x) \int \frac {-3 d^2+6 d e x^2+e^2 x^4}{3 x^2 \sqrt {-1-c^2 x^2}} \, dx}{\sqrt {-c^2 x^2}}\\ &=-\frac {d^2 \left (a+b \text {csch}^{-1}(c x)\right )}{x}+2 d e x \left (a+b \text {csch}^{-1}(c x)\right )+\frac {1}{3} e^2 x^3 \left (a+b \text {csch}^{-1}(c x)\right )-\frac {(b c x) \int \frac {-3 d^2+6 d e x^2+e^2 x^4}{x^2 \sqrt {-1-c^2 x^2}} \, dx}{3 \sqrt {-c^2 x^2}}\\ &=\frac {b c d^2 \sqrt {-1-c^2 x^2}}{\sqrt {-c^2 x^2}}-\frac {d^2 \left (a+b \text {csch}^{-1}(c x)\right )}{x}+2 d e x \left (a+b \text {csch}^{-1}(c x)\right )+\frac {1}{3} e^2 x^3 \left (a+b \text {csch}^{-1}(c x)\right )-\frac {(b c x) \int \frac {6 d e+e^2 x^2}{\sqrt {-1-c^2 x^2}} \, dx}{3 \sqrt {-c^2 x^2}}\\ &=\frac {b c d^2 \sqrt {-1-c^2 x^2}}{\sqrt {-c^2 x^2}}+\frac {b e^2 x^2 \sqrt {-1-c^2 x^2}}{6 c \sqrt {-c^2 x^2}}-\frac {d^2 \left (a+b \text {csch}^{-1}(c x)\right )}{x}+2 d e x \left (a+b \text {csch}^{-1}(c x)\right )+\frac {1}{3} e^2 x^3 \left (a+b \text {csch}^{-1}(c x)\right )-\frac {\left (b \left (12 c^2 d e-e^2\right ) x\right ) \int \frac {1}{\sqrt {-1-c^2 x^2}} \, dx}{6 c \sqrt {-c^2 x^2}}\\ &=\frac {b c d^2 \sqrt {-1-c^2 x^2}}{\sqrt {-c^2 x^2}}+\frac {b e^2 x^2 \sqrt {-1-c^2 x^2}}{6 c \sqrt {-c^2 x^2}}-\frac {d^2 \left (a+b \text {csch}^{-1}(c x)\right )}{x}+2 d e x \left (a+b \text {csch}^{-1}(c x)\right )+\frac {1}{3} e^2 x^3 \left (a+b \text {csch}^{-1}(c x)\right )-\frac {\left (b \left (12 c^2 d e-e^2\right ) x\right ) \text {Subst}\left (\int \frac {1}{1+c^2 x^2} \, dx,x,\frac {x}{\sqrt {-1-c^2 x^2}}\right )}{6 c \sqrt {-c^2 x^2}}\\ &=\frac {b c d^2 \sqrt {-1-c^2 x^2}}{\sqrt {-c^2 x^2}}+\frac {b e^2 x^2 \sqrt {-1-c^2 x^2}}{6 c \sqrt {-c^2 x^2}}-\frac {d^2 \left (a+b \text {csch}^{-1}(c x)\right )}{x}+2 d e x \left (a+b \text {csch}^{-1}(c x)\right )+\frac {1}{3} e^2 x^3 \left (a+b \text {csch}^{-1}(c x)\right )-\frac {b \left (12 c^2 d-e\right ) e x \tan ^{-1}\left (\frac {c x}{\sqrt {-1-c^2 x^2}}\right )}{6 c^2 \sqrt {-c^2 x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 134, normalized size = 0.79 \begin {gather*} \frac {c^2 \left (b \sqrt {1+\frac {1}{c^2 x^2}} x \left (6 c^2 d^2+e^2 x^2\right )+2 a c \left (-3 d^2+6 d e x^2+e^2 x^4\right )\right )+2 b c^3 \left (-3 d^2+6 d e x^2+e^2 x^4\right ) \text {csch}^{-1}(c x)+b \left (12 c^2 d-e\right ) e x \log \left (\left (1+\sqrt {1+\frac {1}{c^2 x^2}}\right ) x\right )}{6 c^3 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.34, size = 189, normalized size = 1.11
method | result | size |
derivativedivides | \(c \left (\frac {a \left (2 c^{3} d e x +\frac {e^{2} c^{3} x^{3}}{3}-\frac {c^{3} d^{2}}{x}\right )}{c^{4}}+\frac {b \left (2 \,\mathrm {arccsch}\left (c x \right ) c^{3} d e x +\frac {e^{2} \mathrm {arccsch}\left (c x \right ) c^{3} x^{3}}{3}-\frac {\mathrm {arccsch}\left (c x \right ) c^{3} d^{2}}{x}+\frac {\sqrt {c^{2} x^{2}+1}\, \left (6 c^{4} d^{2} \sqrt {c^{2} x^{2}+1}+12 c^{3} d e \arcsinh \left (c x \right ) x +e^{2} c^{2} x^{2} \sqrt {c^{2} x^{2}+1}-\arcsinh \left (c x \right ) e^{2} c x \right )}{6 c^{2} x^{2} \sqrt {\frac {c^{2} x^{2}+1}{c^{2} x^{2}}}}\right )}{c^{4}}\right )\) | \(189\) |
default | \(c \left (\frac {a \left (2 c^{3} d e x +\frac {e^{2} c^{3} x^{3}}{3}-\frac {c^{3} d^{2}}{x}\right )}{c^{4}}+\frac {b \left (2 \,\mathrm {arccsch}\left (c x \right ) c^{3} d e x +\frac {e^{2} \mathrm {arccsch}\left (c x \right ) c^{3} x^{3}}{3}-\frac {\mathrm {arccsch}\left (c x \right ) c^{3} d^{2}}{x}+\frac {\sqrt {c^{2} x^{2}+1}\, \left (6 c^{4} d^{2} \sqrt {c^{2} x^{2}+1}+12 c^{3} d e \arcsinh \left (c x \right ) x +e^{2} c^{2} x^{2} \sqrt {c^{2} x^{2}+1}-\arcsinh \left (c x \right ) e^{2} c x \right )}{6 c^{2} x^{2} \sqrt {\frac {c^{2} x^{2}+1}{c^{2} x^{2}}}}\right )}{c^{4}}\right )\) | \(189\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 191, normalized size = 1.12 \begin {gather*} \frac {1}{3} \, a x^{3} e^{2} + {\left (c \sqrt {\frac {1}{c^{2} x^{2}} + 1} - \frac {\operatorname {arcsch}\left (c x\right )}{x}\right )} b d^{2} + 2 \, a d x e + \frac {1}{12} \, {\left (4 \, x^{3} \operatorname {arcsch}\left (c x\right ) + \frac {\frac {2 \, \sqrt {\frac {1}{c^{2} x^{2}} + 1}}{c^{2} {\left (\frac {1}{c^{2} x^{2}} + 1\right )} - c^{2}} - \frac {\log \left (\sqrt {\frac {1}{c^{2} x^{2}} + 1} + 1\right )}{c^{2}} + \frac {\log \left (\sqrt {\frac {1}{c^{2} x^{2}} + 1} - 1\right )}{c^{2}}}{c}\right )} b e^{2} + \frac {{\left (2 \, c x \operatorname {arcsch}\left (c x\right ) + \log \left (\sqrt {\frac {1}{c^{2} x^{2}} + 1} + 1\right ) - \log \left (\sqrt {\frac {1}{c^{2} x^{2}} + 1} - 1\right )\right )} b d e}{c} - \frac {a d^{2}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 580 vs.
\(2 (153) = 306\).
time = 0.41, size = 580, normalized size = 3.41 \begin {gather*} \frac {2 \, a c^{3} x^{4} \cosh \left (1\right )^{2} + 2 \, a c^{3} x^{4} \sinh \left (1\right )^{2} + 6 \, b c^{4} d^{2} x + 12 \, a c^{3} d x^{2} \cosh \left (1\right ) - 6 \, a c^{3} d^{2} - 2 \, {\left (3 \, b c^{3} d^{2} x - 6 \, b c^{3} d x \cosh \left (1\right ) - b c^{3} x \cosh \left (1\right )^{2} - b c^{3} x \sinh \left (1\right )^{2} - 2 \, {\left (3 \, b c^{3} d x + b c^{3} x \cosh \left (1\right )\right )} \sinh \left (1\right )\right )} \log \left (c x \sqrt {\frac {c^{2} x^{2} + 1}{c^{2} x^{2}}} - c x + 1\right ) - {\left (12 \, b c^{2} d x \cosh \left (1\right ) - b x \cosh \left (1\right )^{2} - b x \sinh \left (1\right )^{2} + 2 \, {\left (6 \, b c^{2} d x - b x \cosh \left (1\right )\right )} \sinh \left (1\right )\right )} \log \left (c x \sqrt {\frac {c^{2} x^{2} + 1}{c^{2} x^{2}}} - c x\right ) + 2 \, {\left (3 \, b c^{3} d^{2} x - 6 \, b c^{3} d x \cosh \left (1\right ) - b c^{3} x \cosh \left (1\right )^{2} - b c^{3} x \sinh \left (1\right )^{2} - 2 \, {\left (3 \, b c^{3} d x + b c^{3} x \cosh \left (1\right )\right )} \sinh \left (1\right )\right )} \log \left (c x \sqrt {\frac {c^{2} x^{2} + 1}{c^{2} x^{2}}} - c x - 1\right ) + 2 \, {\left (3 \, b c^{3} d^{2} x - 3 \, b c^{3} d^{2} + {\left (b c^{3} x^{4} - b c^{3} x\right )} \cosh \left (1\right )^{2} + {\left (b c^{3} x^{4} - b c^{3} x\right )} \sinh \left (1\right )^{2} + 6 \, {\left (b c^{3} d x^{2} - b c^{3} d x\right )} \cosh \left (1\right ) + 2 \, {\left (3 \, b c^{3} d x^{2} - 3 \, b c^{3} d x + {\left (b c^{3} x^{4} - b c^{3} x\right )} \cosh \left (1\right )\right )} \sinh \left (1\right )\right )} \log \left (\frac {c x \sqrt {\frac {c^{2} x^{2} + 1}{c^{2} x^{2}}} + 1}{c x}\right ) + 4 \, {\left (a c^{3} x^{4} \cosh \left (1\right ) + 3 \, a c^{3} d x^{2}\right )} \sinh \left (1\right ) + {\left (6 \, b c^{4} d^{2} x + b c^{2} x^{3} \cosh \left (1\right )^{2} + 2 \, b c^{2} x^{3} \cosh \left (1\right ) \sinh \left (1\right ) + b c^{2} x^{3} \sinh \left (1\right )^{2}\right )} \sqrt {\frac {c^{2} x^{2} + 1}{c^{2} x^{2}}}}{6 \, c^{3} x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b \operatorname {acsch}{\left (c x \right )}\right ) \left (d + e x^{2}\right )^{2}}{x^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (e\,x^2+d\right )}^2\,\left (a+b\,\mathrm {asinh}\left (\frac {1}{c\,x}\right )\right )}{x^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________